import axios from 'axios'

export const saveUser = params => {
  return axios.post('/user/save', params)
}
export const delUser = params => {
  return axios.delete(`/user/delete/${params.id}`, params)
}
export const getUser = params => {
  return axios.get(`/user/get/${params.id}`, params)
}
export const getUserList = params => {
  return axios.get('/user/list', params)
}
export const saveMsg = params => {
  return axios.post('/message/save', params)
}
export const delMsg = params => {
  return axios.delete(`/message/delete/${params.id}`, params)
}
export const getMsg = params => {
  return axios.get(`/message/get/${params.id}`, params)
}
export const getMsgList = params => {
  return axios.get('/message/list', params)
}
export const login = params => {
  return axios.post('/login', params)
}
